<template>
  <div class="swiper-wrap">
    <van-swipe class="my-swipe" :autoplay="3000" height="90" :show-indicators='false'>
      <van-swipe-item v-for="(item,index) in firstPic" :key="index">
        <van-image class="img" id="one-imgs" fit="fill" radius="10px" :src="item.image"></van-image>
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  name: "WorkspaceJsonSwiper",

  data() {
    return {
      firstPic:[
        {
          image:require('../../assets/swiper/swiper1.jpg')
        },
        {
          image:require('../../assets/swiper/swiper2.jpg')
        },
        {
          image:require('../../assets/swiper/swiper3.jpg')
        }
      ]
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.swiper-wrap {
  padding: 10px;
  box-sizing: border-box;
}
.my-swipe .van-swipe-item {
    border-radius:12px ;
    overflow: hidden;
    color: #fff;
    font-size: 20px;
    line-height: 90px;
    text-align: center;
    background-color: #39a9ed;
  }
</style>